﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.IO;
using System.Windows.Forms;

namespace UTLDB
{
    public class UTLTEXT
    {
        public UTLTEXT()
        { 
        }
        public static ArrayList ReadText(string strFilename)
        {
            ArrayList arrList = new ArrayList();
            if (!File.Exists(strFilename))
            {
                MessageBox.Show(strFilename + " không tồn tại!");
                return arrList;
            }
            using (StreamReader sr = File.OpenText(strFilename))
            {
                String input;
                while ((input = sr.ReadLine()) != null)
                {
                    arrList.Add(input);
                }
            }
            return arrList;
        }
    }
}
